      <tr>                                                            
        <td bgcolor="#FFFFFF" valign="top">
          <div id="navigation"> |                                                                                
            <a href="index.php?p=view">&Uuml;bersicht</a> |
	    <a href="index.php?p=neu">Neuer Eintrag</a> |<br><br>
<?php 
if(!isset($_SESSION["username"])) 
   { 
   echo "<form action=\"index.php?p=login\" method=\"post\"> Name: <input type=\"text\" size=\"24\" maxlength=\"50\" name=\"username\"> Passwort: <input type=\"password\" size=\"24\" maxlength=\"50\" name=\"password\"> <input type=\"submit\" value=\"Login\"><br> </form>";  
   }
else
{
$username = $_SESSION["username"];
echo "Du bist eingeloggt als $username <a href=\"index.php?p=logout\">logout</a>";
}
?>
          </div>
<hr />		  
          </td>                                          
      </tr>